package tomoto.image;

import java.awt.image.BufferedImage;

public class BufferedImageUtil {
	@Deprecated
	private BufferedImageUtil() {}
	
	/**
	 * Copy the entire content (RGB pixel value) of an image to another.
	 * 
	 * @param src source image
	 * @param dest destination image
	 */
	public static void copyRGB(BufferedImage src, BufferedImage dest) {
		int width = src.getWidth();
		int height = src.getHeight();
		int[] pixels = src.getRGB(0, 0, width, height, null, 0, width);
		dest.setRGB(0, 0, width, height, pixels, 0, width);
	}
}
